<?php

class RelationController extends Controller
{
	public function __construct($id,$module=null){
		parent::__construct($id,$module);
		$this->layout='application.views.layouts.layout';
	}
	public function actionAddRelation($Frid){
		$Foid = Yii::app ()->user->uid;
		Page::model ()->addRelation ( $Frid,$Foid );
	}
	public function actionRemoveRelation($Frid){
				$Foid = Yii::app ()->user->uid;
		Page::model ()->removeRelation ( $Frid,$Foid );
	}
	public function actionMove2Blacklist($Frid){
		$Foid = Yii::app ()->user->uid;
		Page::model ()->add2Blacklist ( $Frid,$Foid );
	}
	public function actionRemoveFromBlacklist($Frid){
		$Foid = Yii::app ()->user->uid;
		Page::model ()->removefromBlacklist ( $Frid,$Foid );
	}
}